﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataProcessor
{
    public class PlainTextProcessor
    {
        public bool hasKeyword(string filename, string keyword)
        {
            string line;
            bool result = false;  
              // Read the file and parse it line by line.
            System.IO.StreamReader file = new System.IO.StreamReader(filename);
            while ((line = file.ReadLine()) != null)
            {
                if (line.Contains(keyword))
                {
                    result = true;
                    break; //Break the loop when the first result found
                }
                file.Close();
            }
            return result;
        }
        
            
     
    }
}
